package com.mes.cloud.dto;

import com.mes.cloud.annotation.ExcelAttribute;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户角色关联表
 *
 * @author wxm
 * @Time 2019-4-16
 */
@ApiModel(value = "UserRoleRefDTO", description = "用户角色关联表")
@Data
public class UserRoleRefDTO extends BaseDto implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @ApiModelProperty(value = "ID", dataType = "Long")
    @ExcelAttribute(name = "ID", column = "A")
    private Long id;
    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID", dataType = "Long")
    @ExcelAttribute(name = "用户ID", column = "B")
    private Long userId;
    /**
     * 角色ID
     */
    @ApiModelProperty(value = "角色ID", dataType = "Long")
    @ExcelAttribute(name = "角色ID", column = "C")
    private Long roleId;

    /**
     *
     */
    @ApiModelProperty(value = "创建时间", dataType = "Date")
    @ExcelAttribute(name = "创建时间", column = "D")
    private Date crtdate;

    /**
     *
     */
    @ApiModelProperty(value = "修改时间", dataType = "Date")
    @ExcelAttribute(name = "修改时间", column = "E")
    private Date upddate;
    /**
     * 描述
     */
    @ApiModelProperty(value = "描述", dataType = "String")
    @ExcelAttribute(name = "描述", column = "F")
    private String remark;
    /**
     *
     */
    @ApiModelProperty(value = "0正常/1删除", dataType = "Integer")
    private Integer isDelete;
    /**
     *
     */
    @ApiModelProperty(value = "0正常/1禁用", dataType = "Integer")
    @ExcelAttribute(name = "0正常/1禁用", column = "G")
    private Integer isEnable;

    @ApiModelProperty(value = "0正常/1主要", dataType = "Integer")
    @ExcelAttribute(name = "0正常/1主要", column = "H")
    private Integer isMain;
}
